﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RHD.Common.Web.Components.Grid {
	public class GridBuilder {
		internal int pageSize = 20;
		internal int[] sizeOptions = { 10, 20, 50 };
		internal bool multiSelect;
		internal string url;

		public GridBuilder PageSize(int pageSize) {
			this.pageSize = pageSize;
			return this;
		}

		public GridBuilder SizeOptions(params int[] sizeOptions) {
			this.sizeOptions = sizeOptions;
			return this;
		}

		public GridBuilder Multiselect(bool b) {
			this.multiSelect = b;
			return this;
		}

		public GridBuilder Url(string s) {
			this.url = s;
			return this;
		}
	}
}